Sugar CO2 Module
Parameter
Size | 24 x 24 x 16 mm |
---|---|
Weight | 5.1 g |
Signal | i2c |
Gas Measured | Carbon Dioxide (CO2) |
Features
It has a fully calibrated air quality output signal, mainly for detecting air quality, and can output values for carbon dioxide (CO2) and total volatile organic compounds (TVOC).
Using on the Future Board Lite
Wiring
Future Board Lite Interface | Wire Used | |||
---|---|---|---|---|
二氧化碳图片 | 方糖-二氧化碳模块 | i2c | Black PH2.0-4Pin interface cable |
Programming Bricks
No. | Brick Image | Brick Function |
---|---|---|
1 | Read sensor to obtain air CO2 (ppm) and TVOC (ppb) values | |
2 | Read sensor to obtain temperature (℃) value | |
3 | Read sensor to obtain humidity (%) value |
Program Writing
Using on the micro:bit
Programming Platform
Microsoft MakeCode for micro:bit
Using the MakeCode programming platform.
Add Extensions
Search for 'sugar' in the extensions and click to add.
Wiring
RobotbitEDU Interface | Wire Used | |||
---|---|---|---|---|
方糖-二氧化碳模块 | i2c | Black PH2.0-4Pin interface cable |
Programming Bricks
No. | Brick Image | Brick Function |
---|---|---|
1 | Read sensor to obtain air carbon dioxide (ppm) value | |
2 | Read sensor to obtain temperature (℃) value | |
3 | Read sensor to obtain humidity (%) value |
Program Writing
The functionality implementation includes the following parts:
- Display temperature when Button A is pressed
- Display humidity when Button B is pressed
- Display carbon dioxide concentration when Button A + Button B is pressed